<include file="Public:header" />

<div id="page-body">
    <div id="qan-breadcrumbs"><span><a href="{$_global.site_url}">{$Think.lang.home}</a></span>&gt;&nbsp;<span><a href="{:U('Tag/listing')}">{$Think.lang.tags}</a></span>&gt;&nbsp;<span>{$Think.lang.tagged_questions}</span></div>
    <div id="qan-content">
        <ul id="status-nav" class="tabs">
            <li <eq name="status" value="all">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'all'))}">{$Think.lang.status_all}</a></li>
            <li <eq name="status" value="open">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'open'))}">{$Think.lang.status_open}</a></li>
            <li <eq name="status" value="voting">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'voting'))}">{$Think.lang.status_voting}</a></li>
            <li <eq name="status" value="resolved">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'resolved'))}">{$Think.lang.status_resolved}</a></li>
            <li <eq name="status" value="unanswered">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'unanswered'))}">{$Think.lang.status_unanswered}</a></li>
            <li <eq name="status" value="reward">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'reward'))}">{$Think.lang.status_reward}</a></li>
            <li <eq name="status" value="urgent">class="current"</eq>><a href="{:U('Tag/index',array('tid'=>$tag['tag_id'],'status'=>'urgent'))}">{$Think.lang.status_urgent}</a></li>
        </ul>
        <ul class="questions tagged-questions">
            <volist name="questions" id="vo" mod="2">
            <li class="item <eq name="mod" value="0">alt</eq>">
                <div class="avatar"><a href="{$vo.user_id|format_user_url=$vo['username']}"><img src="{$vo.email|get_avatar}" alt="{$vo.username}" /></a></div>
                <div class="info">
                    <h3><a href="{$vo.question_id|format_question_url=$vo['title']}">{$vo.title|Input::forShow}</a></h3>
                    <ul class="meta">
                        <li class="stars"><a href="#nogo"><span class="star-count has-stars">{$vo.star_count}</span><span class="star">Stars</span></a></li>
                        <li>{$Think.lang.asked_by} <a href="{$vo.user_id|format_user_url=$vo['username']}">{$vo.username}</a> - </li>
                        <li>{$Think.lang.in} <a href="{$vo.category_id|format_category_url}">{$vo.category_id|get_category_name}</a> - </li>
                        <li>{$vo.answer_count} {$Think.lang.answer_count} - </li>
                        <li><abbr title="{$vo.create_time|format_date}">{$vo.create_time|pretty_date}</abbr></li>
                    </ul>
                </div>
            </li>
            </volist>
        </ul>
        <div class="pagination">{$pagination}</div>
    </div>
    <div id="qan-sidebar">
        <!-- my status widget -->
        {:W('MyStatus',array('_user'=>$_user))}
        <!-- top tags widget-->
        {:W('TopTags')}
        <!-- help tips widget -->
        {:W('HelpTips')}
        <!-- like this page -->
        <div id="qan-persistent-links" class="mod">
            <h2>{$Think.lang.user_like_page}</h2>
            <ul class="syndication-links">
                <li class="rss"><a href="{:U('Feed/tag',array('tid'=>$tag['tag_id']))}">{$Think.lang.rss}</a></li>
                <li class="invite"><a href="{:U('Invitation/inviteFriend',array('uid'=>$_user['user_id']))}">{$Think.lang.invite_friends}</a></li>
            </ul>
            <!-- add this widget -->
            {:W('AddThis')}
        </div>
    </div>
</div>

<include file="Public:footer" />
